home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Peter's Final Project / src / Makefile < prev    next >
Encoding:
Makefile  |  1995-05-06  |  6.1 KB  |  194 lines  |  [TEXT/KAHL]

  1. HDRS =                \
  2.     camera.h        \
  3.     clip.h             \
  4.     collision.h        \
  5.     computer.h        \
  6.     engine.h        \
  7.     face.h            \
  8.     list.h            \
  9.     matrix.vector.h        \
  10.     maze.h            \
  11.     object.h        \
  12.     point.h            \
  13.     render.h        \
  14.     scan.h            \
  15.     sector.h        \
  16.     sys.stuff.h        \
  17.     sys.types.h        \
  18.     texture.h        \
  19.     timer.h            \
  20.     type.defs.h        \
  21.     utils.h            \
  22.     world.h
  23.  
  24. SRCS =                \
  25.     camera.c        \
  26.     clip.c            \
  27.     collision.c        \
  28.     computer.c        \
  29.     engine.c        \
  30.     face.c            \
  31.     list.c            \
  32.     main.c            \
  33.     matrix.vector.c        \
  34.     maze.c            \
  35.     object.c        \
  36.     point.c            \
  37.     render.c        \
  38.     scan.c            \
  39.     sector.c        \
  40.     sys.stuff.c        \
  41.     texture.c        \
  42.     timer.c            \
  43.     utils.c            \
  44.     world.c
  45.  
  46. OBJS =                \
  47.     camera.o        \
  48.     clip.o            \
  49.     collision.o        \
  50.     computer.o        \
  51.     engine.o        \
  52.     face.o            \
  53.     list.o            \
  54.     main.o            \
  55.     matrix.vector.o        \
  56.     maze.o            \
  57.     object.o        \
  58.     point.o            \
  59.     render.o        \
  60.     scan.o            \
  61.     sector.o        \
  62.     sys.stuff.o        \
  63.     texture.o        \
  64.     timer.o            \
  65.     utils.o            \
  66.     world.o
  67.  
  68. PROGRAM    = final
  69.  
  70. CC        =    gcc
  71. OPTIMIZE =    -O3 -finline-functions
  72. #PROFILE  =    -pg
  73. #DEBUG      =    -g
  74. CFLAGS    =    $(PROFILE) $(DEBUG) $(OPTIMIZE)
  75. CLIBS     =            \
  76.           -lX11        \
  77.           -lXext        \
  78.         -lXpm        \
  79.           -lm        \
  80.         -ljpeg
  81.  
  82. INCLUDE        = -I/usr/sww/X11/include -I/usr/sww/include
  83.  
  84. LINCLUDE    = -L/usr/sww/X11/lib -L/usr/sww/lib
  85.  
  86. LINKER      = $(CC)
  87.  
  88. #----------------------------------------------------------------------
  89. # You probably will not need to modify anything below this line.
  90. #----------------------------------------------------------------------
  91.  
  92. # Add all the flags to CFLAGS
  93.  
  94. CFLAGS    += $(INCLUDE)
  95.  
  96. default:    $(PROGRAM)
  97.  
  98. program:    $(PROGRAM)
  99.  
  100. server: server.c clientserver.h
  101.     gcc -o server -g server.c
  102.  
  103. all:        $(PROGRAM)
  104.  
  105. .c:
  106.     $(CC) $(CFLAGS) -o $@ $< $(CLIBS) $(INCLUDE)
  107.     
  108. $(PROGRAM): $(OBJS) 
  109.     @echo -n "Loading $(PROGRAM) ... "
  110.     $(LINKER) $(PROFILE) $(OBJS) $(CLIBS) $(LINCLUDE) -o $(PROGRAM)
  111.     @echo "done."
  112.  
  113. depend:
  114. ifeq ($(OSTYPE), hpux)
  115.     @echo "Making dependencies for HP..."
  116.     /usr/sww/X11/bin/makedepend $(INCLUDE) $(CFLAGS) $(SRCS) 
  117. else
  118.     @echo "Making dependencies for SGI..."
  119.     /usr/bin/X11/makedepend $(INCLUDE) $(CFLAGS) $(SRCS) 
  120. endif
  121.  
  122.  
  123. clean:
  124.     rm -f *.o *~ gmon.out profile
  125.  
  126. # DO NOT DELETE THIS LINE -- make depend depends on it
  127.  
  128. camera.o: /usr/sww/include/assert.h camera.h matrix.vector.h type.defs.h
  129. camera.o: sys.types.h sys.stuff.h /usr/include/stdlib.h
  130. camera.o: /usr/include/sys/stdsyms.h
  131. clip.o: clip.h point.h list.h type.defs.h sys.types.h matrix.vector.h
  132. clip.o: sys.stuff.h /usr/include/stdlib.h /usr/include/sys/stdsyms.h
  133. collision.o: collision.h type.defs.h sys.types.h face.h list.h point.h
  134. collision.o: matrix.vector.h texture.h object.h camera.h sector.h
  135. engine.o: /usr/sww/include/assert.h /usr/include/stdio.h
  136. engine.o: /usr/include/sys/stdsyms.h /usr/include/stdlib.h collision.h
  137. engine.o: type.defs.h sys.types.h engine.h matrix.vector.h maze.h object.h
  138. engine.o: camera.h list.h render.h scan.h point.h texture.h sector.h face.h
  139. engine.o: sys.stuff.h timer.h world.h
  140. face.o: /usr/sww/include/assert.h face.h list.h type.defs.h sys.types.h
  141. face.o: point.h matrix.vector.h texture.h sys.stuff.h /usr/include/stdlib.h
  142. face.o: /usr/include/sys/stdsyms.h
  143. list.o: /usr/sww/include/assert.h list.h type.defs.h sys.types.h sys.stuff.h
  144. list.o: /usr/include/stdlib.h /usr/include/sys/stdsyms.h
  145. main.o: /usr/include/stdio.h /usr/include/sys/stdsyms.h /usr/include/stdlib.h
  146. main.o: /usr/include/string.h engine.h utils.h sys.stuff.h sys.types.h
  147. matrix.vector.o: /usr/include/math.h /usr/include/sys/stdsyms.h
  148. matrix.vector.o: /usr/include/stdio.h /usr/include/stdlib.h matrix.vector.h
  149. matrix.vector.o: type.defs.h sys.types.h
  150. maze.o: /usr/sww/include/assert.h /usr/include/stdlib.h
  151. maze.o: /usr/include/sys/stdsyms.h /usr/include/stdio.h list.h type.defs.h
  152. maze.o: sys.types.h maze.h sys.stuff.h
  153. object.o: /usr/sww/include/assert.h face.h list.h type.defs.h sys.types.h
  154. object.o: point.h matrix.vector.h texture.h object.h camera.h sys.stuff.h
  155. object.o: /usr/include/stdlib.h /usr/include/sys/stdsyms.h
  156. point.o: /usr/sww/include/assert.h point.h list.h type.defs.h sys.types.h
  157. point.o: matrix.vector.h sys.stuff.h /usr/include/stdlib.h
  158. point.o: /usr/include/sys/stdsyms.h
  159. render.o: /usr/include/math.h /usr/include/sys/stdsyms.h /usr/include/stdio.h
  160. render.o: /usr/include/stdlib.h clip.h point.h list.h type.defs.h sys.types.h
  161. render.o: matrix.vector.h face.h texture.h object.h camera.h render.h scan.h
  162. render.o: sector.h sys.stuff.h
  163. scan.o: /usr/sww/include/assert.h /usr/include/math.h
  164. scan.o: /usr/include/sys/stdsyms.h /usr/include/stdio.h list.h type.defs.h
  165. scan.o: sys.types.h sys.stuff.h /usr/include/stdlib.h scan.h matrix.vector.h
  166. scan.o: point.h texture.h utils.h
  167. sector.o: /usr/sww/include/assert.h sector.h face.h list.h type.defs.h
  168. sector.o: sys.types.h point.h matrix.vector.h texture.h sys.stuff.h
  169. sector.o: /usr/include/stdlib.h /usr/include/sys/stdsyms.h
  170. sys.stuff.o: /usr/sww/X11/include/X11/Xlib.h /usr/include/sys/types.h
  171. sys.stuff.o: /usr/include/sys/stdsyms.h /usr/sww/X11/include/X11/X.h
  172. sys.stuff.o: /usr/sww/X11/include/X11/Xfuncproto.h
  173. sys.stuff.o: /usr/sww/X11/include/X11/Xosdefs.h /usr/include/stddef.h
  174. sys.stuff.o: /usr/sww/X11/include/X11/Xutil.h
  175. sys.stuff.o: /usr/sww/X11/include/X11/keysym.h
  176. sys.stuff.o: /usr/sww/X11/include/X11/keysymdef.h
  177. sys.stuff.o: /usr/sww/X11/include/X11/extensions/XShm.h
  178. sys.stuff.o: /usr/sww/X11/include/X11/xpm.h /usr/include/sys/ipc.h
  179. sys.stuff.o: /usr/include/sys/shm.h /usr/sww/include/assert.h
  180. sys.stuff.o: /usr/include/signal.h /usr/include/sys/signal.h sys.stuff.h
  181. sys.stuff.o: /usr/include/stdlib.h sys.types.h utils.h
  182. texture.o: /usr/sww/include/assert.h /usr/include/math.h
  183. texture.o: /usr/include/sys/stdsyms.h /usr/include/stdio.h
  184. texture.o: /usr/sww/include/jpeglib.h /usr/sww/include/jconfig.h
  185. texture.o: /usr/sww/include/jmorecfg.h sys.stuff.h /usr/include/stdlib.h
  186. texture.o: sys.types.h texture.h type.defs.h utils.h
  187. timer.o: /usr/include/stdlib.h /usr/include/sys/stdsyms.h timer.h
  188. utils.o: /usr/include/stdio.h /usr/include/sys/stdsyms.h
  189. utils.o: /usr/include/stdlib.h utils.h
  190. world.o: /usr/sww/include/assert.h /usr/include/stdio.h
  191. world.o: /usr/include/sys/stdsyms.h face.h list.h type.defs.h sys.types.h
  192. world.o: point.h matrix.vector.h texture.h maze.h object.h camera.h sector.h
  193. world.o: sys.stuff.h /usr/include/stdlib.h world.h
  194.